﻿using Architecture.Domain.Dto.LeaveDto;
using Architecture.Domain;
using MediatR;

namespace Architecture.API.Application.Command.RequestForLeaveCommand
{
    /// <summary>
    /// 请假列表分页命令
    /// </summary>
    public class LeaveListSeachCommand : IRequest<LeaveListDto<GetInfoDto>>
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public bool? ToExamine { get; set; }
    }
}
